﻿@model IEnumerable<string>

<ul>
    <li id="menutitle">
        产品分类
    </li>
    

    @foreach (var link in Model)
    {
        var i = string.Empty;
        if (link == @ViewBag.SelectedCategory)
        {
            i = "class=selected";
        }
        else
        {
            i = string.Empty;
        }
            
        <li @i>        

            @Html.RouteLink(link, new { controller = "Product", action = "List", category = link, page = 1 })
        </li>
    }

</ul>